#include "LPC11XX.H"

void T32B1_DelayMs(uint16_t ms)
{
     LPC_TMR32B1->TCR =0x02;
	   LPC_TMR32B1->PR =0;
     LPC_TMR32B1->MR0 =ms*(SystemCoreClock/1000);
	   LPC_TMR32B1->TCR =0x01;
     while(LPC_TMR32B1->TCR&0x01);
}	
